package org.xgj.menu;

import java.util.ArrayList;
import java.util.List;

public class Menu {
    private String id;
    private String url;
    private String title;
    private Menu parentMenu = new Menu();
    private List<Menu> subMenus = new ArrayList<Menu>();
 
    /**
     * @param parentMenu
     *            the parentMenu to set
     */
    protected void setParentMenu(Menu parentMenu) {
        this.parentMenu = parentMenu;
    }

    /**
     * @return the parentMenu
     */
    public Menu getParentMenu() {
        return parentMenu;
    }

    /**
     * @param title
     *            the title to set
     */
    protected void setTitle(String title) {
        this.title = title;
    }


    /**
     * @return the title
     */
    public String getTitle() {
        return title;
    }
    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @return the url
     */
    public String getUrl() {
        return url;
    }

    /**
     * @param id
     *            the id to set
     */
    protected void setId(String id) {
        this.id = id;
    }

    /**
     * @param url
     *            the url to set
     */
    protected void setUrl(String url) {
        this.url = url;
    }

    /**
     * @param subMenus
     *            the subMenus to set
     */
    protected void setSubMenus(List<Menu> subMenus) {
        this.subMenus = subMenus;
    } 

    /**
     * @return the subMenus
     */
    public List<Menu> getSubMenus() {
        return subMenus;
    }
}
